#!/bin/bash
for _ in {1..10}; do
    if [[ -f /run/console-done ]]; then
        if [[ ! -f "/home/docker/.ssh/authorized_keys" ]]; then
            system-docker exec console sh -c 'echo "docker:tcuser" | chpasswd' > /dev/null 2>&1
        fi
        break
    else
        sleep 2
    fi
done

qemu-ga
